package lab4;

public class ManyMulty extends Thread{
	private MatrixGenerator m1;
	private MatrixGenerator m2;
	private int row;
	public ManyMulty(MatrixGenerator m1,MatrixGenerator m2,int row) {
		this.m1=m1;
		this.m2=m2;
		this.row=row;
	}
	@Override
	public void run() {
		for(int i=row;i<Main.a/10+row;i++) {
			for(int j=0;j<m2.matrix[0].length;j++) {
				Main.m3[i][j]=0;
				for(int k=0;k<m1.matrix[i].length;k++) {
					Main.m3[i][j]+=m1.matrix[i][k]*m2.matrix[k][j];
				}
			}
		}
	}
}
